"--------------display-----------------
set nu				"行号
syntax on			"语法高亮
set ruler			"显示当前行和列
set showcmd			"显示部分命令
set showmode		        "最后一行显示当前模式
 "显示括号匹配
inoremap ( () <LEFT> 
inoremap { {} <LEFT> 
inoremap [ [] <LEFT> 
inoremap ' '' <LEFT> 
inoremap " "" <LEFT>            
 "显示括号匹配
"--------------display-----------------

"---------------input------------------
set smartindent		"自动缩进
set expandtab		"将tab转化为空格
set smarttab		"插入tab使用shiftwidth
set shiftwidth=4	"缩进列数为4
"---------------input------------------

"---------------search-----------------
set hlsearch		"搜索结果高亮显示
set ignorecase		"不区分大小写
set smartcase		"当有大写字母时区分大小写
"---------------search-----------------

"---------------encoding----------------
set encoding=utf-8		"设置编码格式
set fileencodings=utf-8,gb18030,gbk,gb2312,big5
set termencoding=utf-8

"--------------ctags----------------
:set tags+='/home/tags'		"换成自己生成的tags路径
"--------------ctags----------------

"--------------taglist----------------
let Tlist_Use_Left_Window=1		"vim左侧窗口显示Taglist
let Tlist_Exit_OnlyWindow=1		"Taglist是最后一个窗口是退出vim
let Tlist_WinWidth=20		"设置Taglist窗口宽度为20
nmap <F2> :Tlist<CR>			"设置快捷键<F2>打开Taglist
"--------------taglist----------------

"--------------NERDTree---------------
let NERDTreeWinPos='right'		"设置窗口在右侧
nmap <F8> :NERDTree<CR>			"设置快捷键F8打开
let NERDTreeWinSize=16		 	"窗口大小为16
"--------------NERDTree---------------

 "-------SourceExplore------
nmap <F5> :SrcExplToggle<CR>    		"设置快捷键为F5
let g:SrcExpl_winHeight=6       		"高度为6
let g:SrcExpl_refreshTime=100   		"刷新时间100ms
let g:SrcExpl_jumpKey='<ENTER>' 		"回车键跳转定义
let g:SrcExpl_gobackKey='<SPACE>'       "空格键返回
let g:SrcExpl_pluginList=[
                 \'_Tag_List_',
                \'NERD_tree_',
                 \'Source_Explorer'
                \]						"避免插件冲突
let g:SrcExpl_searchLocalDef=1  		"搜索本地的定义
let g:SrcExpl_isUpdateTags=0    		"文件打开时不更新tags
let g:SrcExpl_updateTagsCmd='ctags
             \--sort=foldcase -R .'		"用ctags的命令创建tags
let g:SrcExpl_updateTagsKey='<F12>'     "更新tags的快捷键
"-------SourceExplore------
